﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Text.RegularExpressions;
using System.Web.UI.WebControls;
using bVideo = Portal.Core.Customer.bVideo;

public partial class Controls_View_DetailVideo : System.Web.UI.UserControl
{
    int Id_Video = 1;
    public string TrailerLink = "", Path_current = "", Path_script = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        Path_current = HttpContext.Current.Request.Url.AbsoluteUri;
        Path_script = Infomations.UrlScript;
        if (Request.QueryString["id"] != null)
        {
            Id_Video = int.Parse(Request.QueryString["id"].ToString());
        }
        if (!IsPostBack)
        {
            bVideo.GetDetailVideoForID(Id_Video);
            TrailerLink = bVideo.Trailer_link;
            lbl_Title.Text = bVideo.TitleVN + " - " + bVideo.TitleEN;
            L_Direct.Text = Enginer.reText(bVideo.Direct);
            L_Produce.Text = bVideo.Produce;
            L_Actor.Text = Enginer.reText(bVideo.Actor);
            L_Category.Text = Enginer.reText(bVideo.Category);
            L_National.Text = Enginer.reText(bVideo.Nationals);
            L_Year.Text = bVideo.produce_year;
            L_Part.Text = bVideo.part_sum.ToString() + " tập";
            L_ViewCount.Text = bVideo.view_count.ToString();
            L_Description.Text = bVideo.Description;
            Image1.ImageUrl = bVideo.Thumbnail;
        }
    }
}